package vista;

import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.ImageIcon;
import javax.swing.JPanel;


public class PanelImagenLadron extends JPanel {

	private static final long serialVersionUID = 3462620745655981827L;
	private String rutaImagenLadron;
	
	public PanelImagenLadron (String rutaImagenLadron){
		this.rutaImagenLadron = rutaImagenLadron;
	}
	public void paintComponent(Graphics g){
		Dimension d = getSize();
        ImageIcon imagen = new ImageIcon(rutaImagenLadron);
        g.drawImage(imagen.getImage(),0,0,d.width,d.height,null);
        setOpaque(false);
	} 
}
